﻿//水仙花数
int num = 100;

while (num < 999) 
{
    int han = num / 100;
    int ten = num / 10 - han * 10;
    int bit = num % 10;
    if(
        han*han*han
        +ten*ten*ten
        +bit*bit*bit
        ==num)
    {
        Console.WriteLine(num);
    }
    num++;
}
